/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package plagiadetector.utility;

import plagiadetector.evaluator.Evaluator;

/**
 *
 * @author Dell
 */
public class DummyEvaluator {
    public static void main(String[] args){
        Evaluator eva = new Evaluator();
        
        float[] plagprecision = new float[10];
        float[] plagrecall = new float[10];
        float[] plaggranularity = new float[10];
    
        float totalprecision = 0f;
        float totalrecall = 0f;
        float totalgranularity = 0f;
        float totalplagdet;
        
        plagprecision[0] = 0.06414526f;
        plagrecall[0] = 0.3025041f;
        plaggranularity[0] = 1.2623866f;
        
        plagprecision[1] = 0.05942322f;
        plagrecall[1] = 0.27153772f;
        plaggranularity[1] = 1.2159529f;
        
        plagprecision[2] = 0.06335255f;
        plagrecall[2] = 0.21967787f;
        plaggranularity[2] = 1.1719596f;
        
        plagprecision[3] = 0.07417041f;
        plagrecall[3] = 0.308159f;
        plaggranularity[3] = 1.2398258f;
        
        plagprecision[4] = 0.06667393f;
        plagrecall[4] = 0.26110289f;
        plaggranularity[4] = 1.2373089f;
     
        plagprecision[5] = 0.07753672f;
        plagrecall[5] = 0.28831825f;
        plaggranularity[5] = 1.2971722f;
        
        plagprecision[6] = 0.06089168f;
        plagrecall[6] = 0.25970906f;
        plaggranularity[6] = 1.179363f;
        
        plagprecision[7] = 0.04837765f;
        plagrecall[7] = 0.2231136f;
        plaggranularity[7] = 1.0345274f;
        
        plagprecision[8] =  0.066121f;
        plagrecall[8] = 0.27339947f;
        plaggranularity[8] = 1.1722174f;
        
        plagprecision[9] = 0.042453762f;
        plagrecall[9] = 0.22291209f;
        plaggranularity[9] = 1.0123627f;
        
        for(int i = 0; i < 10; i++){
            totalprecision += plagprecision[i];
            totalrecall += plagrecall[i];
            totalgranularity += plaggranularity[i];
        }
        
        totalprecision /= 10f;
        totalrecall /= 10f;
        totalgranularity /= 10f;
        
        totalplagdet = eva.countPlagdet(totalprecision, totalrecall, totalgranularity);
        
        System.out.println("Total Precision : "+totalprecision);
        System.out.println("Total Recall : "+totalrecall);
        System.out.println("Total Granularity : "+totalgranularity);
        System.out.println("Total Plagdet : "+totalplagdet);                
    }
    
}
